package com.lpit.controller;

import com.lpit.result.ResponseResult;
import com.lpit.service.FansService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * @author 石智星
 * @version 1.0
 * @date 2023/7/6 11:00
 */
@RestController
@RequestMapping("/fans")
public class FansController {
    @Autowired
    private FansService fansService;

    /**
     * 查询粉丝
     * @param page
     * @param pageSize
     * @param id 当前登录的用户id
     * @return
     */
    @GetMapping
    public ResponseResult list(Integer page,Integer pageSize,Integer id){
        return fansService.list(page,pageSize,id);
    }


}
